package com.yjymm.commonsdk.common.component.wechat;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author panhaoxiong
 * @date 2021-02-07 16:17
 */
@Component
public class WXComponent {

    @Bean
    @ConditionalOnProperty(name = "wx.smallapp")
    public WXSmallAppProperties wxSmallAppProperties(WXSmallAppProperties wxSmallAppProperties) {
        return wxSmallAppProperties;
    }

}
